package com.example.lib_storage

import com.example.lib_storage.mmkv.MMKVOwner
import com.example.lib_storage.mmkv.MMKVProperty
import com.tencent.mmkv.MMKV

/**
 * @author yaotianxue
 * @description
 * @date 2025/1/14
 */
object AuthMMKV:MMKVOwner {
    /**
     * 存储到auth文件中
     */
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID(MMKVConfig.ID.AUTH)

    //token
    var token by MMKVProperty("")

    //判断已经登陆
    fun hasLogin() = token.isNotEmpty()




}